﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WebAPILib.APIs.DaZhouDianPing
{
    /// <summary>
    /// 商家信息
    /// </summary>
    public class ShopInfo
    {
        /// <summary>
        /// 商户ID
        /// </summary>
        public int business_id { get; set; }

        /// <summary>
        /// 商户名
        /// </summary>
        public string name { get; set; }

        /// <summary>
        /// 分店名
        /// </summary>
        public string branch_name { get; set; }

        /// <summary>
        /// 地址
        /// </summary>
        public string address { get; set; }

        /// <summary>
        /// 带区号的电话
        /// </summary>
        public string telephone { get; set; }

        /// <summary>
        /// 所在城市
        /// </summary>
        public string city { get; set; }

        /// <summary>
        /// 所在区域信息列表，如[徐汇区，徐家汇]
        /// </summary>
        public string[] regions { get; set; }

        /// <summary>
        /// 所属分类信息列表，如[宁波菜，婚宴酒店]
        /// </summary>
        public string[] categories { get; set; }

        /// <summary>
        /// 纬度坐标
        /// </summary>
        public Single latitude { get; set; }

        /// <summary>
        /// 经度坐标
        /// </summary>
        public Single longitude { get; set; }

        /// <summary>
        /// 星级评分，5.0代表五星，4.5代表四星半，依此类推
        /// </summary>
        public Single avg_rating { get; set; }

        /// <summary>
        /// 星级图片链接
        /// </summary>
        public string rating_img_url { get; set; }

        /// <summary>
        /// 小尺寸星级图片链接
        /// </summary>
        public string rating_s_img_url { get; set; }
        
        /// <summary>
        /// 产品/食品口味评价，1:一般，2:尚可，3:好，4:很好，5:非常好
        /// </summary>
        public int product_grade { get; set; }

        /// <summary>
        /// 环境评价，1:一般，2:尚可，3:好，4:很好，5:非常好
        /// </summary>
        public int decoration_grade { get; set; }

        /// <summary>
        /// 服务评价，1:一般，2:尚可，3:好，4:很好，5:非常好
        /// </summary>
        public int service_grade { get; set; }

        /// <summary>
        /// 人均价格，单位:元，若没有人均，返回-1
        /// </summary>
        public int avg_price { get; set; }

        /// <summary>
        /// 点评数量
        /// </summary>
        public int review_count { get; set; }

        /// <summary>
        /// 商户与参数坐标的距离，单位为米，如不传入经纬度坐标，结果为-1
        /// </summary>
        public int distance { get; set; }

        /// <summary>
        /// 商户页面链接
        /// </summary>
        public string business_url { get; set; }

        /// <summary>
        /// 照片链接，照片最大尺寸700×700
        /// </summary>
        public string photo_url { get; set; }

        /// <summary>
        /// 小尺寸照片链接，照片最大尺寸278×200
        /// </summary>
        public string s_photo_url { get; set; }

        /// <summary>
        /// 是否有优惠券，0:没有，1:有
        /// </summary>
        public int has_coupon { get; set; }

        /// <summary>
        /// 优惠券ID
        /// </summary>
        public int coupon_id { get; set; }

        /// <summary>
        /// 优惠券描述
        /// </summary>
        public string coupon_description { get; set; }

        /// <summary>
        /// 优惠券页面链接
        /// </summary>
        public string coupon_url { get; set; }

        /// <summary>
        /// 是否有团购，0:没有，1:有
        /// </summary>
        public int has_deal { get; set; }

        /// <summary>
        /// 商户当前在线团购数量
        /// </summary>
        public int deal_count { get; set; }

        /// <summary>
        /// 团购列表
        /// </summary>
        public deal[] deals { get; set; }

        ///// <summary>
        ///// 团购ID
        ///// </summary>
        //public string deals_id { get; set; }

        ///// <summary>
        ///// 团购描述
        ///// </summary>
        //public string deals_description { get; set; }

        ///// <summary>
        ///// 团购页面链接
        ///// </summary>
        //public string deals_url { get; set; }

    }
}
